export default {
    namespaced: true,
    state: () => {
        return {
            headerTextColor: '#fff',
            showAudioMask: false,
            showAudioMaskCommitButton: false,
            showPlayDrawer: false,
            showProject: true,
        }
    },
    actions: {},
    mutations: {
        //更换头部的字体颜色
        CHANGETEXTCOLOR(state, item) {
            state.headerTextColor = item
        },
        //切换遮罩层是否显示
        SWITCHSHOWAUDIOMASK(state) {
            state.showAudioMask = !state.showAudioMask
        },
        //切换遮罩层评论对话框是否显示
        SWITCHMASKCOMMITDIALOG(state, boolean) {
            state.showAudioMaskCommitButton = boolean
        },
        //切换播放列表是否显示
        SWITCHPLAYDRAWER(state) {
            console.log(1)
            state.showPlayDrawer = !state.showPlayDrawer
        },
        // 切换整个页面是否显示
        SWITCHPROJECT(state) {
            state.showProject = !state.showProject
        },

    },
    getters: {},
}
